import State from "../../base/State";
import { StateMachine } from "../../base/stateMachine";
import { SubStateMachine } from "../../base/subStateMachine";
import { DIRECTION_UNUM } from "../enums";

const BASE_URL = "texture/player/turnleft";

export default class TurnLeftSubStateMachine extends SubStateMachine {
    constructor(_fsm: StateMachine) {
        super(_fsm);

        this._stateMachines.set(DIRECTION_UNUM.LEFT, new State(_fsm, `${BASE_URL}/left`));
        this._stateMachines.set(DIRECTION_UNUM.RIGHT, new State(_fsm, `${BASE_URL}/right`));
    }
};